﻿using FluentNHibernate.Mapping;

namespace ControleRepresentante.Logic.Models.Maps
{
    public class AttributeHolderMap : MapBase<AttributeHolder>
    {
        public AttributeHolderMap()
        {
            HasMany(x => x.AttributeValues)
                .Inverse()
                .Access.PascalCaseField(Prefix.mUnderscore)
                .Cascade.AllDeleteOrphan();
            References(x => x.Representante)
                .Cascade.None()
                .Not.Nullable();
        }
    }
}
